|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.util.EventObject
com.virtualweaver.xotics.datamodel.event.XoUndoableEvent
An event fired by XoDMInstance each time an undoable modification has been performed
on DM instance, i.e XoObject adding or removal and property change.
| Field Summary |
| Fields inherited from class java.util.EventObject |
source |
| Constructor Summary | |
XoUndoableEvent(XoDMInstance source,
byte undoablekind,
XoContainer parent,
XoObject child,
int index)
Constructor used to create an undoable event of type add or remove child |
|
XoUndoableEvent(XoDMInstance source,
XoObject xo,
java.lang.String pname,
java.lang.Object oldvalue,
java.lang.Object newvalue)
Constructor used to create an undoable event of type set property. |
|
| Method Summary | |
XoObject |
getChild()
Child object involved in an add or remove change |
int |
getIndex()
Child index for an add or remove change |
java.lang.Object |
getNewPropertyValue()
Returns new property value in case of property change. |
java.lang.Object |
getOldPropertyValue()
Returns old property value in case of property change. |
XoContainer |
getParent()
Parent container involved in an add or remove change. |
java.lang.String |
getPropertyName()
Returns property name in case of property change |
XoObject |
getPropertyOwner()
Owner object of property changed |
byte |
getUndoableKind()
This property represents the kind of undoable event, one of these values : XoConstants.UNDOABLE_ADD_OBJECT
XoConstants.UNDOABLE_REMOVE_OBJECT
XoConstants.UNDOABLE_SET_PROPERTY
|
| Methods inherited from class java.util.EventObject |
getSource, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public XoUndoableEvent(XoDMInstance source,
byte undoablekind,
XoContainer parent,
XoObject child,
int index)
source - the source of event, which is allways a DM instanceundoablekind - event kind, to choose among :
parent - parent container involved in add/remove processchild - child object added/removedindex - child index
public XoUndoableEvent(XoDMInstance source,
XoObject xo,
java.lang.String pname,
java.lang.Object oldvalue,
java.lang.Object newvalue)
source - the source of event, which is allways a DM instancexo - object whose property is changedpname - property name involvedoldvalue - property value before changenewvalue - property value after change| Method Detail |
public byte getUndoableKind()
XoConstants.UNDOABLE_ADD_OBJECTXoConstants.UNDOABLE_REMOVE_OBJECTXoConstants.UNDOABLE_SET_PROPERTY
public XoContainer getParent()
public XoObject getChild()
public XoObject getPropertyOwner()
public int getIndex()
public java.lang.Object getOldPropertyValue()
public java.lang.Object getNewPropertyValue()
public java.lang.String getPropertyName()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||